package com.cdxy.model.dto.base.exception.enums;


/**
 * create by zhouc 2019/11/04
 */
public enum SpecialErrorEnum implements IError {
    /**
     * 特殊异常
     */
    USER_LOGIN_STATUS_ERROR(1401, "用户登录状态异常"),
    USER_LOGIN_STATUS_ERROR_NOTIFY(1402, "用户登录状态异常"),
    DEVICE_ERROR(1500, "应用异常");

    /**
     * 基本错误码
     */
    private int baseCode;

    /**
     * 错误描述
     */
    private String desc;

    SpecialErrorEnum() {
    }

    SpecialErrorEnum(int baseCode, String desc) {
        this.baseCode = baseCode;
        this.desc = desc;
    }

    @Override
    public int getLayerNum() {
        return 0;
    }

    @Override
    public int getCode() {
        return this.baseCode;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}